import service from '@/utils/request'
/***
 * 条形码
 */
const BarodeApi = {

   addBarode: function (data) {
      return service.post('institution/codeRule/addData', data)
   },
   getBarode: function (data) {
      return service.get('institution/codeRule/getInfoList',  {params: data })
   },
   upBarode: function (data) {
      return service.put('institution/codeRule/update', data)
   },

   //删除
   delBarode: function (data) {
      return service.put('institution/codeRule/delete', data)
   },
   checkoutBarode: function (data) {
      return service.get('institution/codeRule/checkoutCodeRule',  {params: data })
   },

   //详情
   editlBarode: function (data) {
      return service.get('institution/codeRule/getInfoById?insCodeRuleId=' + data)
   },
}
export default BarodeApi